#include <iostream>
using namespace std;

int p(int x);

int main ( )
{
    int d,n=0,i;
    cout<<"please enter the day of the mokey"<<endl;
    cin>>d;

    for(i=1;i<=d;i++)
    {
    n=p(i);
    cout<<"the"<<i<<"day,mankey have"<<n<<"peach"<<endl;
    }
    
    cin>>n;
    return 0;
}

int p(int x)
{
    int n;

    if(x==1) n=1;
    else n=(p(x-1)+1)*2;

    return n;
}
